/* 修改按钮的样式 */
// 信息按钮改为提交/查询按钮
.el-button {
  font-weight: 400;
}
.el-button--info {
  background-color: $theme-per !important;
  border-color: $theme-per !important;
  &:hover {
    opacity: 0.9;
  }
}
// 文字按钮
.el-button--text {
  color: $theme-per !important;
  &:hover {
    text-decoration: underline;
  }
  .text {
    color: $theme-text;
    &:hover {
      color: $theme-per;
    }
  }
}
// 警告按钮改为用于重置
.el-button--warning {
  background-color: #F7F8FA !important;
  border-color: #EAEDF0 !important;
  color: $theme-text-fu !important;
  &:hover {
    opacity: 0.9;
  }
}
.el-button--denger {
  background-color: $divider-rly !important;
  border-color: $divider-rly !important;
  color: $theme-text-act !important;
  &:hover {
    opacity: 0.9;
  }
}

// dialog弹窗统一头部/body样式
// :close-on-click-modal="false"  是否可以通过点击 modal 关闭 Dialog
// :destroy-on-close="true"  是否关闭时销毁 Dialog 中的元素
.el-dialog {
  border-radius: 10px !important;
  .el-dialog__header {
    height: 40px;
    line-height: 20px;
    padding: 10px 20px;
    font-weight: 500;
    border-bottom: 1px solid $divider-line;
    text-align: left;
    .el-dialog__title {
      font-size: 16px;
      color: $theme-text;
      line-height: 22px;
    }
    .el-dialog__headerbtn {
      top: 12px;
      .el-dialog__close {
        color: $theme-text;
        font-weight: 500;
      }
    }
  }
  .el-dialog__body {
    padding: 18px 18px 30px 18px;
    text-align: left;
  }
}

// 列表样式
.el-table {
  .el-table__header-wrapper {
    .el-table__header {
      th.is-leaf {
        background: $tablehead-bgcolor;
        border-radius: 3px;
        padding: 0px;
        height: 40px;
        line-height: 40px;
        // border-bottom: 0;
        .cell {
          font-size: 14px;
          color: $tablehead-textcolor;
          font-weight: 400;
        }
      }
    }
  }
}
// 提示文字
.el-tooltip__popper {
  max-width: 300px;
  .maxheight {
    max-width: 300px;
    max-height: 200px;
    line-height: 1.3;
    overflow-y: auto;
  }
}
// 星查查提示文字
.xcc-popper {
  max-width: 500px;
}
//下拉框
.el-select-dropdown__list {
  .el-select-dropdown__item {
    padding: 0 10px;
  }
}
// 星查查权限拦截弹框
.message-box_prompt {
  width: 450px;
  border-radius: 8px;
  padding: 24px 20px 52px 20px;
  .el-message-box__header {
    padding: 0;
    color: #333333;
    .el-message-box__headerbtn {
      top: 0;
      right: 0;
      i {
        color: #333333;
        font-weight: bold;
      }
      &:hover i {
        color: #333333;
      }
    }
  }
  .el-message-box__content {
    text-align: center;
    line-height: 28px;
    padding: 12px 0 32px;
    font-size: 16px;
    p {
      line-height: 28px;
    }
  }
  .el-message-box__btns {
    padding: 0;
    text-align: center;
    button {
      width: 200px;
      height: 40px;
      border-radius: 20px;
      border: 1px solid #ff0929;
      background: #ffffff;
      color: #ff0929;
      font-size: 16px;
    }
  }
}
